@model IEnumerable<Web.Models.Product>

@{
    ViewBag.Title = "Product Index";
}

<h2>Product</h2>
<h4>
    @TempData[Web.Infrastructure.Constants.TempDataMessage]
</h4>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
@foreach (var item in Model) {
    <tr>
        <td>
			@Html.ActionLink(item.Name, "Details", new { id=item.Id })
		</td>
		<td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>


